package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.TbDriverTurnoverMapper;
import com.ruoyi.driver.domain.TbDriverTurnover;
import com.ruoyi.driver.service.ITbDriverTurnoverService;

/**
 * 司机营业额Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-27
 */
@Service
public class TbDriverTurnoverServiceImpl implements ITbDriverTurnoverService 
{
    @Autowired
    private TbDriverTurnoverMapper tbDriverTurnoverMapper;

    /**
     * 查询司机营业额
     * 
     * @param turnoverId 司机营业额主键
     * @return 司机营业额
     */
    @Override
    public TbDriverTurnover selectTbDriverTurnoverByTurnoverId(Integer turnoverId)
    {
        return tbDriverTurnoverMapper.selectTbDriverTurnoverByTurnoverId(turnoverId);
    }

    /**
     * 查询司机营业额列表
     * 
     * @param tbDriverTurnover 司机营业额
     * @return 司机营业额
     */
    @Override
    public List<TbDriverTurnover> selectTbDriverTurnoverList(TbDriverTurnover tbDriverTurnover)
    {
        return tbDriverTurnoverMapper.selectTbDriverTurnoverList(tbDriverTurnover);
    }

    /**
     * 新增司机营业额
     * 
     * @param tbDriverTurnover 司机营业额
     * @return 结果
     */
    @Override
    public int insertTbDriverTurnover(TbDriverTurnover tbDriverTurnover)
    {
        return tbDriverTurnoverMapper.insertTbDriverTurnover(tbDriverTurnover);
    }

    /**
     * 修改司机营业额
     * 
     * @param tbDriverTurnover 司机营业额
     * @return 结果
     */
    @Override
    public int updateTbDriverTurnover(TbDriverTurnover tbDriverTurnover)
    {
        return tbDriverTurnoverMapper.updateTbDriverTurnover(tbDriverTurnover);
    }

    /**
     * 批量删除司机营业额
     * 
     * @param turnoverIds 需要删除的司机营业额主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverTurnoverByTurnoverIds(Integer[] turnoverIds)
    {
        return tbDriverTurnoverMapper.deleteTbDriverTurnoverByTurnoverIds(turnoverIds);
    }

    /**
     * 删除司机营业额信息
     * 
     * @param turnoverId 司机营业额主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverTurnoverByTurnoverId(Integer turnoverId)
    {
        return tbDriverTurnoverMapper.deleteTbDriverTurnoverByTurnoverId(turnoverId);
    }
}
